package com.gitlab.techschool.pcbook.service;

import com.gitlab.techschool.pcbook.pb.Filter;
import com.gitlab.techschool.pcbook.pb.Laptop;

/**
 * 模拟保存与查找笔记本
 */
public interface LaptopStore {

    /**
     * 保存
     */
    void save(Laptop laptop) throws Exception;

    /**
     * 按id查找
     */
    Laptop find(String id);

    /**
     * 搜索
     */
    void search(Filter filter, LaptopStream laptopStream);
}
